import axios from "@/utils/http"
import { tokenStore } from '@/store/modules/user';

/**
 * 路径追踪的刷新
 * @param params
 */
export const trackClick = (params:Object) => {
    return axios({
        url: "/api/track_click",
        method: "get",
        params,
    })
}

/**
 * 保存入侵照片
 * @param params
 */
export const trackSaveClick = (params:Object) => {
    return axios({
        url: "/api/track_cover",
        method: "get",
        params,

    })
}
/**
 * 保存人脸信息
 * @param params
 */
export const recognizeClick = (params:Object) => {
    return axios({
        url: "/api/recognize_click",
        method: "get",
        params,

    })
}
/**
 * 提交新的入侵区域
 * @param params
 */
export const invadeCommitClick = (params:Object) => {
    return axios({
        url: "/api/invade_click",
        method: "post",
        params,

    })
}
/**
 * 火灾预测
 * @param params
 */
export const fireInforList = (params:Object) => {
    return axios({
        url: "/endpoint",
        method: "get",
        params,

    })
}